package com.ruoyi.merchant.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.merchant.mapper.MerchantMarketingApplicationsMapper;
import com.ruoyi.merchant.domain.MerchantMarketingApplications;
import com.ruoyi.merchant.service.IMerchantMarketingApplicationsService;

/**
 * 商家营销活动申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-22
 */
@Service
public class MerchantMarketingApplicationsServiceImpl implements IMerchantMarketingApplicationsService 
{
    @Autowired
    private MerchantMarketingApplicationsMapper merchantMarketingApplicationsMapper;

    /**
     * 查询商家营销活动申请
     * 
     * @param appId 商家营销活动申请主键
     * @return 商家营销活动申请
     */
    @Override
    public MerchantMarketingApplications selectMerchantMarketingApplicationsByAppId(String appId)
    {
        return merchantMarketingApplicationsMapper.selectMerchantMarketingApplicationsByAppId(appId);
    }

    /**
     * 查询商家营销活动申请列表
     * 
     * @param merchantMarketingApplications 商家营销活动申请
     * @return 商家营销活动申请
     */
    @Override
    public List<MerchantMarketingApplications> selectMerchantMarketingApplicationsList(MerchantMarketingApplications merchantMarketingApplications)
    {
        return merchantMarketingApplicationsMapper.selectMerchantMarketingApplicationsList(merchantMarketingApplications);
    }

    /**
     * 新增商家营销活动申请
     * 
     * @param merchantMarketingApplications 商家营销活动申请
     * @return 结果
     */
    @Override
    public int insertMerchantMarketingApplications(MerchantMarketingApplications merchantMarketingApplications)
    {
        return merchantMarketingApplicationsMapper.insertMerchantMarketingApplications(merchantMarketingApplications);
    }

    /**
     * 修改商家营销活动申请
     * 
     * @param merchantMarketingApplications 商家营销活动申请
     * @return 结果
     */
    @Override
    public int updateMerchantMarketingApplications(MerchantMarketingApplications merchantMarketingApplications)
    {
        return merchantMarketingApplicationsMapper.updateMerchantMarketingApplications(merchantMarketingApplications);
    }

    /**
     * 批量删除商家营销活动申请
     * 
     * @param appIds 需要删除的商家营销活动申请主键
     * @return 结果
     */
    @Override
    public int deleteMerchantMarketingApplicationsByAppIds(String[] appIds)
    {
        return merchantMarketingApplicationsMapper.deleteMerchantMarketingApplicationsByAppIds(appIds);
    }

    /**
     * 删除商家营销活动申请信息
     * 
     * @param appId 商家营销活动申请主键
     * @return 结果
     */
    @Override
    public int deleteMerchantMarketingApplicationsByAppId(String appId)
    {
        return merchantMarketingApplicationsMapper.deleteMerchantMarketingApplicationsByAppId(appId);
    }
}
